package org.hcyspartnoc.luoxin.pojo.dto.searchtopic;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
public class QuestionUpdateDto {

    @NotNull(message = "题目ID不能为空")
    private Long id;
    private String  queTopic;
    private String  queAnswer;
    private String  queAnalysis;
    private List<QuestionOptions> options;

    @Data
    @NoArgsConstructor
    public static class QuestionOptions{
        private Integer id;
        private String option;
    }
}
